package org.feifei.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.feifei.basic.domain.BaseDomain;
import org.feifei.org.domain.Shop;
import org.feifei.pet.domain.Pet;
import org.feifei.user.domain.User;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类 ---领养订单
 */
@Data
public class AdoptOrder extends BaseDomain {
    //摘要
    private String digest;
    //状态：0待支付，1完成，2待确认，-1取消
    private Integer state = 0;
    //价格
    private BigDecimal price;
    //订单唯一编号
    private String orderSn;
    //支付单唯一编号
    private String paySn;
    //最后支付时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastPayTime;
    //最后确认时间
    private Date lastConfirmTime;
    //领养哪个宠物
    private Pet pet;
    private Long pet_id;
    //哪个用户来领养
    private User user;
    private Long user_id;
    //去哪个店铺领养
    private Shop shop;
    private Long shop_id;

}
